package biz

//
//type RedisOpLogService interface {
//	Save(model model.OpLog) bool
//	Clear(RecordId string) bool
//	//List300(model model.OpLog) model.Records
//}
//
//type RedisOpLogRepo interface {
//	Save(model model.OpLog) bool
//	Clear(RecordId string) bool
//	//List300(model model.OpLog) model.Records
//}
//
//type redisOpLogService struct {
//}
//
//func (srv *redisOpLogService) Save(model model.OpLog) bool {
//	panic("implement me")
//}
//
//func (srv *redisOpLogService) Clear(RecordId string) bool {
//	panic("implement me")
//}
//
////func (srv *redisOpLogService) List300(model model.OpLog) model.Records {
////	panic("implement me")
////}
//
//type redisOplogRepo struct {
//	db *sql.DB
//}
//
//func (repo *redisOplogRepo) Save(model model.OpLog) bool {
//	stmt, err := repo.db.Prepare("INSERT INTO OpLog(RecordId, RecordName,Content,Status) values(?,?,?,?)")
//	checkErr(err)
//	_, err = stmt.Exec("123", "test", "执行成功", enum.REQUEST_SUCCESS)
//	checkErr(err)
//	return true
//}
//
//func (repo *redisOplogRepo) Clear(RecordId string) bool {
//	panic("implement me")
//}

//func (repo *redisOplogRepo) List300(model model.OpLog) model.Records {
//	panic("implement me")
//}

func checkErr(err error) {
	if err != nil {
		panic(err)
	}
}
